/**
 * 关键字(Keyword)接口
 *
 * @author wuzongbin
 * @since 2023-05-24 11:47:49
 */

import request from '@/utils/request'

export const KeywordApi = {
    /**
     *  插入
     * @returns
     */
    add: (data) => {
        return request({
            url: '/manage/cms/keyword/add',
            data,
            method: 'post'
        })
    },

    /**
     *  更新
     * @returns
     */
    edit: (data) => {
        return request({
            url: '/manage/cms/keyword/edit',
            data,
            method: 'post'
        })
    },

    /**
     *  查询详细
     * @returns
     */
    getInfo: (id) => {
        return request({
            url: '/manage/cms/keyword/getInfo',
            params: {id},
            method: 'get'
        })
    },

    /**
     *  分页
     * @returns
     */
    getPage: (data) => {
        return request({
            url: '/manage/cms/keyword/getPage',
            data,
            method: 'post'
        })
    },

    /**
     *  删除
     * @returns
     */
    delete: (id) => {
        return request({
            url: '/manage/cms/keyword/delete',
            params: {id},
            method: 'get'
        })
    }
}

